package sagroup.codegen;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Enumeration;
import java.util.Properties;

/**
 * Maybe should in javaStudy project.
 * generate toString etc methods.
 * Auto generate code of ?.java from ?Def.txt. The command parameters are
 * like:.\src\lime2 TupleType 2 parameters respectively inform the path where is
 * the location of .txt and .java and class name. please refer to *Def.txt for
 * the format of the definition files.
 * 
 * @author Wenhui Pan
 * 
 */
public class GenMisc {

	public static void main(String[] args) throws IOException {
		if (args.length == 2) {
			run(args[0], args[1]);
		} else {
			System.out
					.println("Please input parameters such as:.\\src\\lime2\\ Command");
			BufferedReader br = new BufferedReader(new InputStreamReader(
					System.in));
			String[] paras = br.readLine().split(" ");
			String className = paras[1];
			run(paras[0], paras[1]);
		}

	}

	private static void run(String path, String className) {
	}

	private static StringBuffer genToString() {
		return null;
	}

}
